HDFS-17043. HttpFS implementation for getAllErasureCodingPolicies#5734
HDFS-17043. HttpFS implementation for getAllErasureCodingPolicies#5734ayushtkn merged 4 commits intoapache:trunkfrom
Conversation
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
| Map<String, String> params = new HashMap<>(); | ||
| params.put(OP_PARAM, Operation.GETECPOLICIES.toString()); | ||
| HttpURLConnection conn = | ||
| getConnection(Operation.GETECPOLICIES.getMethod(), params, new Path(getUri() |
There was a problem hiding this comment.
expend, getUri().toString() uses variables, which may make the code clearer
There was a problem hiding this comment.
Thanks for your suggestion, I'll make the required code changes promptly
|
LGTM. |
|
🎊 +1 overall
This message was automatically generated. |
|
@ayushtkn Would you mind to take another reviews? Thanks. |
ayushtkn
left a comment
There was a problem hiding this comment.
dropped minor comments else lgtm
| params.put(OP_PARAM, Operation.GETECPOLICIES.toString()); | ||
| Path path = new Path(getUri().toString(), "/"); | ||
| HttpURLConnection conn = | ||
| getConnection(Operation.GETECPOLICIES.getMethod(), params, path, true); |
There was a problem hiding this comment.
do we need this makeQualified to be true here? we hardcoded / itself here, getAllStoragePolicies seems to pass false as well
There was a problem hiding this comment.
Thank you for your valuable suggestion. I sincerely appreciate it and will promptly implement the required adjustments to the code!
| WebHdfsFileSystem webHdfsFileSystem = (WebHdfsFileSystem) httpFs; | ||
| diffErasureCodingPolicies = webHdfsFileSystem.getAllErasureCodingPolicies(); | ||
| } else { | ||
| Assert.fail(fs.getClass().getSimpleName() + " doesn't support getSnapshotDiff"); |
|
🎊 +1 overall
This message was automatically generated. |
|
@ayushtkn @slfan1989 Thank you for your assistance in reviewing the code! |
JIRA: HDFS-17043. HttpFS implementation for getAllErasureCodingPolicies